﻿@model BaseballGame.Models.Team

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Team</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.teamName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.teamName)
            @Html.ValidationMessageFor(model => model.teamName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PitcherId, "Pitcher")
        </div>
        <div class="editor-field">
            @Html.DropDownList("PitcherId", String.Empty)
            @Html.ValidationMessageFor(model => model.PitcherId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FirstBaseId, "FirstBase")
        </div>
        <div class="editor-field">
            @Html.DropDownList("FirstBaseId", String.Empty)
            @Html.ValidationMessageFor(model => model.FirstBaseId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SecondBaseId, "SecondBase")
        </div>
        <div class="editor-field">
            @Html.DropDownList("SecondBaseId", String.Empty)
            @Html.ValidationMessageFor(model => model.SecondBaseId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ShortStopId, "ShortStop")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ShortStopId", String.Empty)
            @Html.ValidationMessageFor(model => model.ShortStopId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ThirdBaseId, "ThirdBase")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ThirdBaseId", String.Empty)
            @Html.ValidationMessageFor(model => model.ThirdBaseId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CatcherId, "Catcher")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CatcherId", String.Empty)
            @Html.ValidationMessageFor(model => model.CatcherId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LeftFieldId, "LeftField")
        </div>
        <div class="editor-field">
            @Html.DropDownList("LeftFieldId", String.Empty)
            @Html.ValidationMessageFor(model => model.LeftFieldId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RightfieldId, "Rightfield")
        </div>
        <div class="editor-field">
            @Html.DropDownList("RightfieldId", String.Empty)
            @Html.ValidationMessageFor(model => model.RightfieldId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CenterFieldId, "CenterField")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CenterFieldId", String.Empty)
            @Html.ValidationMessageFor(model => model.CenterFieldId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.B_FirstBaseId, "B_FirstBase")
        </div>
        <div class="editor-field">
            @Html.DropDownList("B_FirstBaseId", String.Empty)
            @Html.ValidationMessageFor(model => model.B_FirstBaseId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.B_SecondBaseId, "B_SecondBase")
        </div>
        <div class="editor-field">
            @Html.DropDownList("B_SecondBaseId", String.Empty)
            @Html.ValidationMessageFor(model => model.B_SecondBaseId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.B_ShortStopId, "B_ShortStop")
        </div>
        <div class="editor-field">
            @Html.DropDownList("B_ShortStopId", String.Empty)
            @Html.ValidationMessageFor(model => model.B_ShortStopId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.B_ThirdBaseId, "B_ThirdBase")
        </div>
        <div class="editor-field">
            @Html.DropDownList("B_ThirdBaseId", String.Empty)
            @Html.ValidationMessageFor(model => model.B_ThirdBaseId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.B_CatcherId, "B_Catcher")
        </div>
        <div class="editor-field">
            @Html.DropDownList("B_CatcherId", String.Empty)
            @Html.ValidationMessageFor(model => model.B_CatcherId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.B_LeftFieldId, "B_LeftField")
        </div>
        <div class="editor-field">
            @Html.DropDownList("B_LeftFieldId", String.Empty)
            @Html.ValidationMessageFor(model => model.B_LeftFieldId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.B_MidfieldId, "B_Midfield")
        </div>
        <div class="editor-field">
            @Html.DropDownList("B_MidfieldId", String.Empty)
            @Html.ValidationMessageFor(model => model.B_MidfieldId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.B_CenterFieldId, "B_CenterField")
        </div>
        <div class="editor-field">
            @Html.DropDownList("B_CenterFieldId", String.Empty)
            @Html.ValidationMessageFor(model => model.B_CenterFieldId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BullPen1Id, "BullPen1")
        </div>
        <div class="editor-field">
            @Html.DropDownList("BullPen1Id", String.Empty)
            @Html.ValidationMessageFor(model => model.BullPen1Id)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BullPen2Id, "BullPen2")
        </div>
        <div class="editor-field">
            @Html.DropDownList("BullPen2Id", String.Empty)
            @Html.ValidationMessageFor(model => model.BullPen2Id)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BullPen3Id, "BullPen3")
        </div>
        <div class="editor-field">
            @Html.DropDownList("BullPen3Id", String.Empty)
            @Html.ValidationMessageFor(model => model.BullPen3Id)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BullPen4Id, "BullPen4")
        </div>
        <div class="editor-field">
            @Html.DropDownList("BullPen4Id", String.Empty)
            @Html.ValidationMessageFor(model => model.BullPen4Id)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CloserId, "Closer")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CloserId", String.Empty)
            @Html.ValidationMessageFor(model => model.CloserId)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
